import request from '@/utils/request'
const baseUrl = '/mall/collection'

export function addCollection(collection) {
  return request({
    url: `${baseUrl}/addCollection`,
    method: 'post',
    data: collection
  })
}

// 根据用户id分页查询所有评论
export function getCollectionPage(params) {
  return request({
    url: `${baseUrl}`,
    method: 'get',
    params:params
  })
}

// 根据用户id分页查询所有评论
export function deleteCollection(collectionId) {
  return request({
    url: `${baseUrl}/deleteById/${collectionId}`,
    method: 'delete'
  })
}

